package com.gxa.usermanagement.controller;



import com.gxa.common.R;
import com.gxa.usermanagement.service.DaYiJiService;
import com.gxa.usermanagement.service.DeliverymanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DeliverymanController {

    @Autowired
    private DeliverymanService deliverymanService;
    @Autowired
    private DaYiJiService daYiJiService;

    @GetMapping("/findDaYinJi")
    public R findDaYinJiController(Integer currentPage, Integer pageSize){
        return daYiJiService.findDaYiJiService(currentPage,pageSize);
    }
    @GetMapping("/findDeliveryman")
    public R findDeliverymanController(Integer currentPage, Integer pageSize){
        return deliverymanService.findDeliverymanService(currentPage,pageSize);
    }
}
